<?php
if (!defined('BASEPATH')) {
	exit('No direct script access allowed');
}

class Dasbor extends CI_Controller {

	function __construct() {
		parent::__construct();
		$this->load->library('breadcrumb');
	}

	function index() {
		if (!$this->ion_auth->logged_in()) {
			redirect('login', 'refresh');
		} else {			
			// judul halaman
			$judul 					= 'Dasbor';
			$data['judul'] 	= $judul;
			
			// Title HTML
			$this->layout->set_title($judul);
			
			// breadcrumb/untuk navigasi
      $this->breadcrumb->clear();
      $this->breadcrumb->add_crumb($judul, site_url('dasbor'));

      //js tambahan
			$this->layout->set_include('js', 'themes/general/bundle/ckeditor/ckeditor.js', 'header');

			$data['test'] = 'Bismillah';
			$this->layout->theme('apotek','dasbor/index', $data);
		}
	}
}
